""" 
    twExtJS - ToscaWidgets wrapper for ExtJS (see http://extjs.com)
    
    Distributed under the terms of Lesser GNU Public License.
    
    (c) 2007 - Ricardo Girardi Sixel 
"""
from toscawidgets.widgets.extJS.panel import Panel


class TabPanel(Panel):
#    template = "mako:toscawidgets.widgets.extJS.templates.panel.tabpanel"
    xtype = 'tabpanel'
    params=Panel.params | frozenset(['activeTab'])    
    activeTab = 0
    
class Tab(Panel): 
#    template = "mako:toscawidgets.widgets.extJS.templates.panel.tab"
    title = 'tab'
    layout = 'form'
#    defaults = '{width: "100%"}'
    defaultType = 'textfield'
    iconCls='tab'
    xtype = None
    autoScroll = True
    params=Panel.params | frozenset(['defaults','defaultType','layout','title','iconCls','width','autoScrol'])